home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: actuary@nando.net (Bill McCarthy)
- Newsgroups: comp.lang.c
- Subject: Re: argc/argv & switches
- Date: 8 Mar 1996 03:26:55 GMT
- Organization: Nando.net Public Access
- Message-ID: <4ho9dv$bcb@castle.nando.net>
- References: <4h2j8j$9gn@milo.freenet.vancouver.bc.ca> <danpop.825593142@rscernix> <313E0094.167EB0E7@fore.com> <4hl52oINNa4l@anvil.ugrad.cs.ubc.ca> <danpop.826238070@rscernix>
- Reply-To: actuary@nando.net (Bill McCarthy)
- NNTP-Posting-Host: grail2314.nando.net
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <danpop.826238070@rscernix>,
- danpop@mail.cern.ch (Dan Pop) writes:
-
- >In <4hl52oINNa4l@anvil.ugrad.cs.ubc.ca>
- >c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- >
- >>However, if it were the case that these pointers are not modifiable,
- >
- >It _is_ the case. An attempt to modify a pointer from the argv "array"
- >results in undefined behaviour.
-
- According to Herbert Schildt, 5.1.2.2.1 states "The parameters argc and
- argv and the strings pointed to by the argv array shall be modifiable
- by the program, and retain their last-stored values between program
- startup and program termination."
-
- I'm just reading the standard for the first time, and am only up to page
- 26 :-( so be kind - what am I missing?
-
- While we're on the standard, Dan, is the "missing period" contained on
- page 26 (6.1.3.1)?
-
- I've been stuck on this page because (1) the standard seems to define
- numbers such as "123" (i.e. a string of 1 or more digits) to be a double
- here and as an int in the following section (I peaked :-). There appears
- to be a need for a period at the end of the second line following
- "fractional-constant."
-
- And (2), negative numbers cannot be doubles? From experience,
- this appears wrong. But the only sign I see in the syntax is in the
- exponent-part.
-
- Any help, from anyone, would be appreciated.
-
- Bill McCarthy
- actuary@nando.net
- Wendell, NC USA
-